package com.huluobo.mvvm_base;

import com.huluobo.mvvm_base.bean.UserBeanResult;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * Created by LC on 2023/11/30.
 * 存放所有的接口地址,接口的返回都是一个Observable
 */
public interface ApiService {
    @POST(Const.URL_LOGIN)
    Observable<UserBeanResult> login(@Body RequestBody body);

    @POST(Const.URL_REGISTER)
    Observable<UserBeanResult> register(@Body RequestBody body);
}
